#!/usr/bin/env bash

process_one_line()
{
   echo sss
   echo $2
}

mapfile -t -c 1 -C "process_one_line" lines   < test.data

echo "${lines[@]}"
for line in "${lines[@]}"
do 
echo "${line}"
done
